package com.library.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Book {

    private String isbn;
    private int aid;
    private int pid;
    private String bookName;
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date regDate;
    private float price;
    private String description;
}
